home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_jewl2.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  102 lines

  1.  
  2. # Jones 3D Cog Script
  3. #
  4. # nub_Jewel.cog
  5. #
  6. # [TL] [GGJ]
  7. #
  8. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  9. #
  10. # ========================================================================================
  11. symbols
  12.  
  13. message        startup
  14. message        entered
  15. message        exited
  16.  
  17. thing        player        local
  18. thing        plasma
  19. thing        blockA
  20. thing        blockB
  21.  
  22. surface        topSurfN    linkID=1
  23. surface        topSurfNrim    linkID=1
  24. surface        topSurfS    linkID=1
  25. surface        topSurfSrim    linkID=1
  26. surface        topSurfE    linkID=1
  27. surface        topSurfErim    linkID=1
  28. surface        topSurfW    linkID=1
  29. surface        topSurfWrim    linkID=1
  30. #RKD -- added 4 more enterable surfaces
  31.  
  32. int            blockPos=0    local
  33. #RKD - BLOCKPOS WAS "LOCLA"
  34.  
  35. surface        pad                mask=480
  36.  
  37. end
  38.  
  39. # ========================================================================================
  40. code
  41.  
  42. startup:
  43. StartCutscene(1);
  44. Sleep(0.01);
  45. EndCutscene();
  46.  
  47. player = GetLocalPlayerThing();
  48.  
  49. return;
  50.  
  51. # ........................................................................................
  52. entered:
  53. Print("entered");
  54. PrintInt(blockpos);
  55. #RKD -- ADDED PRINT STATEMENTS
  56.  
  57. if ((GetSenderRef() == pad) && (GetSourceRef() == player) && (blockPos == 0))
  58. {
  59.     print("Jewel is TRUE...");
  60.     JewelFlyingStatus(1, plasma);
  61. }
  62. if ((GetSenderRef() == pad) && ((GetSourceRef() == blockA) || (GetSourceRef() == blockB)))
  63. {
  64.     blockPos = 1;
  65. }
  66.  
  67. #RKD -- GETSENDERREF FOR PLAYER, CHANGED TO GETSOURCEREF
  68. if ((GetSenderID() == 1) && (blockPos == 0) && (GetSourceRef() == player))
  69. {
  70.     Print("entered top surface");
  71.     JewelFlyingStatus(1, plasma);
  72. }
  73.  
  74. return;
  75.  
  76. # ........................................................................................
  77. exited:
  78.  
  79. if ((GetSenderRef() == pad) && (GetSourceRef() == player)) 
  80. {
  81.     print("Jewel is FALSE...");
  82.     JewelFlyingStatus(0, plasma);
  83. }
  84. if ((GetSenderRef() == pad) && ((GetSourceRef() == blockA) || (GetSourceRef() == blockB)))
  85. {
  86.     blockPos = 0;
  87. }
  88.  
  89. #RKD -- GETSENDERREF FOR PLAYER, CHANGED TO GETSOURCEREF
  90. if ((GetSenderID() == 1) && (GetSourceRef() == player))
  91. {
  92.     Print("exited top surface");
  93.     JewelFlyingStatus(0, plasma);
  94. }
  95.  
  96. return;
  97.  
  98. # ........................................................................................
  99. end
  100.  
  101.  
  102.